package net.huashitong.Indicators.service;

import com.sirdc.modules.paas.api.mt.MtRequest;
import com.sirdc.modules.paas.api.mt.MtResponse;

public class MtProcess {

    public static void main(String[] args) {
        try{
            //输入
            String appCode = "xmstjj";
            String appKey = "smases1469";
            String url = "https://csm.xm.gov.cn:8443/smas-pass-interface-server/smas/sendMts.xml";
            MtRequest request = new MtRequest(appCode, appKey, url);
            String phoneNumbers = "18350300651";//手机号码
            String smsContent = "SDK测试短信-java-发送测试";//短信内容
            String sendTime = "";
            MtResponse mtResponse = request.send(phoneNumbers, smsContent, sendTime);
            //输出
            System.out.println("MtAmount:" + mtResponse.getMtAmount());
            System.out.println("StateCode:" + mtResponse.getStateCode());
            System.out.println("StateIntro:" + mtResponse.getStateIntro());
        }catch (Exception e) {
            e.printStackTrace();
        }
    }
}
